package com.cn.bulu.controller;

import org.apache.log4j.lf5.util.DateFormatManager;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by liuchaoya on 2017/7/24.
 * 初衷为了推单，留着后用
 */
@Component("taskJob")
public class TaskJob {

    public void job() {
        Date date = new Date(System.currentTimeMillis());
        DateFormatManager manager = new DateFormatManager("yyyy-MM-dd HH:mm:ss");
        String currentTime = manager.format(date);
        System.err.println(currentTime + " 用于执行定时任务，基于spring框架...");
    }
}
